package net.osweb.crm.modules.sales.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Pricebooks entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_pricebooks")
public class PriceBooks implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7157333586150821723L;
	private Integer id;
	private Integer userid;
	private String pricebookname;
	private String products;
	private Integer status;
	private Timestamp createtime;
	private Timestamp modifiedtime;
	private String description;
	private String buyercustomername;
	private Integer active;
	private Integer isavailability;
	private Timestamp userviewtime;
	private String comment;

	// Constructors

	/** default constructor */
	public PriceBooks() {
	}

	/** full constructor */
	public PriceBooks(Integer userid, String pricebookname, String products,
			Integer status, Timestamp createtime, Timestamp modifiedtime,
			String description, String buyercustomername, Integer active,
			Integer isavailability, Timestamp userviewtime, String comment) {
		this.userid = userid;
		this.pricebookname = pricebookname;
		this.products = products;
		this.status = status;
		this.createtime = createtime;
		this.modifiedtime = modifiedtime;
		this.description = description;
		this.buyercustomername = buyercustomername;
		this.active = active;
		this.isavailability = isavailability;
		this.userviewtime = userviewtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "pricebookname")
	public String getPricebookname() {
		return this.pricebookname;
	}

	public void setPricebookname(String pricebookname) {
		this.pricebookname = pricebookname;
	}

	@Column(name = "products")
	public String getProducts() {
		return this.products;
	}

	public void setProducts(String products) {
		this.products = products;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "modifiedtime", length = 19)
	public Timestamp getModifiedtime() {
		return this.modifiedtime;
	}

	public void setModifiedtime(Timestamp modifiedtime) {
		this.modifiedtime = modifiedtime;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "buyercustomername")
	public String getBuyercustomername() {
		return this.buyercustomername;
	}

	public void setBuyercustomername(String buyercustomername) {
		this.buyercustomername = buyercustomername;
	}

	@Column(name = "active")
	public Integer getActive() {
		return this.active;
	}

	public void setActive(Integer active) {
		this.active = active;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}